package mongo

import (
	"autoTestNew/pkg/config"
	"github.com/go-logr/logr"
	"go.mongodb.org/mongo-driver/mongo"
	"go.uber.org/fx"
)

func Bootstrap(lc fx.Lifecycle, conf *config.MongoDBConfig, logger logr.Logger) (*mongo.Database, error) {
	return NewMongoDBStore(lc, conf, logger.WithName("dashboard-mongodb-store"))
}
